<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
	
<header class="am-topbar admin-header am-topbar-fixed-top am-topbar-inverse">
  <div class="am-topbar-brand">
    <strong>YZC</strong> <small>后台管理</small>
  </div>

  <button class="am-topbar-btn am-topbar-toggle am-btn am-btn-sm am-btn-success am-show-sm-only" data-am-collapse="{target: '#topbar-collapse'}"><span class="am-sr-only">导航切换</span> <span class="am-icon-bars"></span></button>

  <div class="am-collapse am-topbar-collapse" id="topbar-collapse">

	

    <ul class="am-nav am-nav-pills am-topbar-nav am-topbar-right admin-header-list">
      <li><a href="javascript:;"><span class="am-icon-envelope-o"></span> 收件箱 <span class="am-badge am-badge-warning">5</span></a></li>
      <li class="am-dropdown" data-am-dropdown>
        <a class="am-dropdown-toggle" data-am-dropdown-toggle href="javascript:;">
          <span class="am-icon-users"></span> <sec:authentication property="principal.user.fdName"/> <span class="am-icon-caret-down"></span>
        </a>
        <ul class="am-dropdown-content">
          <li><a href="#"><span class="am-icon-user"></span> 资料</a></li>
          <li><a href="#"><span class="am-icon-cog"></span> 设置</a></li>
          <li><a href="${root }/logout.sec"><span class="am-icon-power-off"></span> 退出</a></li>
        </ul>
      </li>
      <li class="am-hide-sm-only"><a href="javascript:;" id="admin-fullscreen"><span class="am-icon-arrows-alt"></span> <span class="admin-fullText">开启全屏</span></a></li>
    </ul>
    <div class="am-u-lg-2  am-topbar-right">
     <form action="${root}/sys/organization/search.do" method="post" id="searchForm">
    <div class="am-input-group am-input-group-primary">
      <span class="am-input-group-btn">
        <button class="am-btn am-btn-primary" type="button" onclick="search();"><span class="am-icon-search"></span></button>
      </span>
      <input type="text" id="searchParam" name="searchParam" class="am-form-field"  placeholder="名称">
    </div>
    </form>
  </div>
  </div>
  <script type="text/javascript">
  	function search(){
  		$("#searchForm").submit();
  		/* var searchName = $("#searchName").val();
  		$.ajax({
			type: "POST",
			data:{searchName:searchName,searchWhich:"title"},
			url: "${root}/sys/organization/search.do",
			success: function(data){
				alert(data);
			},
			cache: false,
			dataType: 'html'
		}); */
  	}
  </script>
</header>
